#ifndef ThreadDialog_H
#define ThreadDialog_H

#include <QDialog>
#include <QObject>
#include "Thread.h"

class ThreadDialog : public QDialog{
	Q_OBJECT
public:
	ThreadDialog(QWidget* parent=0);
protected:
	void closeEvent(QCloseEvent *event);

private slots:
	void startOrStopThreadA();
	void startOrStopThreadB();

private:
	Thread threadA;
	Thread threadB;
	QPushButton *btna;
	QPushButton *btnb;
	QPushButton *btnquit;
};

#endif